import { request } from "@/utils/request";
import { ApiResponse } from "./types";

export const RegisterUserInfo = async (data: any): Promise<ApiResponse> => {
    return await request({
        url: `/api/UserInfo/reg`,
        method: 'post',
        data: data
    })
}

export const LoginUserInfo = async (data: any): Promise<ApiResponse> => {
    return await request({
        url: `/api/UserInfo/login`,
        method: 'post',
        data: data
    })
}